package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PJiajiaoLunboMapper;
import com.haima.ziliao.domain.PJiajiaoLunbo;
import com.haima.ziliao.service.IPJiajiaoLunboService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 资料背景Service业务层处理
 * 
 * @author hima
 * @date 2024-12-12
 */
@Service
public class PJiajiaoLunboServiceImpl extends ServiceImpl<PJiajiaoLunboMapper, PJiajiaoLunbo> implements IPJiajiaoLunboService
{
    @Autowired
    private PJiajiaoLunboMapper pJiajiaoLunboMapper;

    /**
     * 查询资料背景
     * 
     * @param id 资料背景主键
     * @return 资料背景
     */
    @Override
    public PJiajiaoLunbo selectPJiajiaoLunboById(Long id)
    {
        return pJiajiaoLunboMapper.selectPJiajiaoLunboById(id);
    }

    /**
     * 查询资料背景列表
     * 
     * @param pJiajiaoLunbo 资料背景
     * @return 资料背景
     */
    @Override
    public List<PJiajiaoLunbo> selectPJiajiaoLunboList(PJiajiaoLunbo pJiajiaoLunbo)
    {
        return pJiajiaoLunboMapper.selectPJiajiaoLunboList(pJiajiaoLunbo);
    }

    /**
     * 新增资料背景
     * 
     * @param pJiajiaoLunbo 资料背景
     * @return 结果
     */
    @Override
    public int insertPJiajiaoLunbo(PJiajiaoLunbo pJiajiaoLunbo)
    {
        return pJiajiaoLunboMapper.insertPJiajiaoLunbo(pJiajiaoLunbo);
    }

    /**
     * 修改资料背景
     * 
     * @param pJiajiaoLunbo 资料背景
     * @return 结果
     */
    @Override
    public int updatePJiajiaoLunbo(PJiajiaoLunbo pJiajiaoLunbo)
    {
        return pJiajiaoLunboMapper.updatePJiajiaoLunbo(pJiajiaoLunbo);
    }

    /**
     * 批量删除资料背景
     * 
     * @param ids 需要删除的资料背景主键
     * @return 结果
     */
    @Override
    public int deletePJiajiaoLunboByIds(Long[] ids)
    {
        return pJiajiaoLunboMapper.deletePJiajiaoLunboByIds(ids);
    }

    /**
     * 删除资料背景信息
     * 
     * @param id 资料背景主键
     * @return 结果
     */
    @Override
    public int deletePJiajiaoLunboById(Long id)
    {
        return pJiajiaoLunboMapper.deletePJiajiaoLunboById(id);
    }
}
